package top.yehot.cmmu.shiro.session;

import org.apache.shiro.session.mgt.SimpleSession;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>自定义session类，参考【若依】</p>
 * <p>参考类URL：https://gitee.com/y_project/RuoYi/blob/master/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSession.java</p>
 * 
 * @author lquan
 * @date 2022-9-9 21:04:19
 */
@Getter
@Setter
public class CustomSession extends SimpleSession {

	private static final long serialVersionUID = 1L;

	/** 用户ID */
	private Long userId;
	
	/** 登录名称 */
	private String loginName;
	
	/** 真实姓名 */
	private String realName;
    
    /** 操作系统 */
    private String os;

    /** 浏览器 */
    private String browser;
    
    /** 特征码（ip + User-Agent 再MD5加密）*/
    private String features;
	
}
